const packages = {
  login:(options = {})=>{
    return new Promise((resolve,reject)=>{
      options.success = resolve;
      options.fail = reject;
      wx.login(options);
    });
  },

  checkSession:(options= {})=>{
    return new Promise((resolve,reject)=>{
      options.success = resolve;
      options.fail = reject;
      wx.checkSession(options);
    });
  }
}

module.exports = packages;